package com.bw.service;

import com.bw.bean.Goods;
import com.bw.dao.GoodsDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService{
    @Autowired
    GoodsDao goodsDao;

    @Override
    public List<Goods> getList1() {
        return goodsDao.getList1();
    }

    @Override
    public List<Goods> getList2(String name) {
        return goodsDao.getList2(name);
    }

    @Override
    public List<Goods> getList3(double money) {
        return goodsDao.getList3(money);
    }

    @Override
    public List<Goods> getList4(String jdate1, String jdate2) {
        return goodsDao.getList4(jdate1,jdate2);
    }

    @Override
    public int insert(String name, int num, double money, String jdate, int tid) {
        return goodsDao.insert(name,num,money,jdate,tid);
    }

    @Override
    public int update() {
        return goodsDao.update();
    }

    @Override
    public int delete(int id) {
        return goodsDao.delete(id);
    }
}
